package com.example.sherlockzhong.plush_v2.CardBeans;
/**
 * Created by DosonLeung on 2014/7/30.
 */

import android.widget.ImageView;
import android.widget.TextView;

import com.example.sherlockzhong.plush_v2.R;
import com.example.sherlockzhong.plush_v2.View.CardHorizontalScrollView;


public class GradeCardBean {
    private static int cardId = 3;
    private static String cardClass = "Grade";
    private int grade_icon;
    private String grade_title;
    private String grade_property;
    private String grade_detial;
    private String grade_total;
    private String grade_credit;

    public GradeCardBean() {
        this.grade_icon = R.drawable.grade_icon;
        this.grade_title = "";
        this.grade_property = "";
        this.grade_detial = "";
        this.grade_total = "";
        this.grade_credit = "";
    }

    public static int getCardId() {
        return cardId;
    }

    public static String getCardClass() {
        return cardClass;
    }

    public int getGradeIcon() {
        return grade_icon;
    }

    public void setGradeIcon(int grade_icon) {
        this.grade_icon = grade_icon;
    }

    public String getGradeTitle() {
        return grade_title;
    }

    public void setGradeTitle(String grade_title) {
        this.grade_title = grade_title;
    }

    public String getGradeProperty() {
        return grade_property;
    }

    public void setGradeProperty(String grade_property) {
        this.grade_property = grade_property;
    }

    public String getGradeDetial() {
        return grade_detial;
    }

    public void setGradeDetial(String grade_detial) {
        this.grade_detial = grade_detial;
    }

    public String getGradeTotal() {
        return grade_total;
    }

    public void setGradeTotal(String grade_total) {
        this.grade_total = grade_total;
    }

    public String getGradeCredit() {
        return grade_credit;
    }

    public void setGradeCredit(String grade_credit) {
        this.grade_credit = grade_credit;
    }

    public void insertTo(CardHorizontalScrollView v) {
        ImageView grade_icon = (ImageView) v.findViewById(R.id.grade_icon);
        TextView grade_title = (TextView) v.findViewById(R.id.grade_title);
        TextView grade_property = (TextView) v.findViewById(R.id.grade_property);
        TextView grade_detial = (TextView) v.findViewById(R.id.grade_detial);
        TextView grade_total = (TextView) v.findViewById(R.id.grade_total);
        TextView grade_credit = (TextView) v.findViewById(R.id.grade_credit);

        grade_icon.setImageResource(this.getGradeIcon());
        grade_title.setText(this.getGradeTitle());
        grade_property.setText(this.getGradeProperty());
        grade_detial.setText(this.getGradeDetial());
        grade_total.setText(this.getGradeTotal());
        grade_credit.setText(this.getGradeCredit());
    }
}

